<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
    <div id="app">
        <form enctype="multipart/form-data">
            <input type="file" name="file" v-model="file" >
            <button type="button" @click="upload()">上传</button>
        </form>
    </div>
</body>
<script type="text/javascript" src="../../plugins/vue/vue.js"></script>
<script type="text/javascript" src="../../plugins/axios/axios.min.js"></script>
<script src="../../js/request.js"></script>
<script>
 new Vue({
     data:{
         file:null
     },
     method:{
         upload() {
             alert(111)
         }
     }
 })

</script>

</html>